package com.lc.cehui.http.request;

import com.hjq.http.config.IRequestApi;

import java.io.File;
import java.util.List;

public class GoodsSendApi implements IRequestApi {

    private int userid;
    private int goods_id;//添加时候为空；修改时候必填商品goods_id
    private String name;//名称
    private String picurl;//主图
    private String picarr;//轮播图（一维数组）
    private int type_pid;//商品大类
    private int type_id;//商品二级分类
    private String attrs;//	商品属性（二维数组）			array(array('黑色','25','100'),array('白色','35','100'))
    private String price;//		商品价格		
    private String y_price;//	下划线价格		
    private int is_display;//	商品状态：2下架；1上架
    private String text;//	描述：图片一维数组
    private int is_new;//	0新机；1旧仪器		
    private int state;//	1 售卖 ；2 租用		


    public GoodsSendApi setUserid(int userid) {
        this.userid = userid;
        return this;
    }

    public GoodsSendApi setGoods_id(int goods_id) {
        this.goods_id = goods_id;
        return this;
    }

    public GoodsSendApi setName(String name) {
        this.name = name;
        return this;
    }

    public GoodsSendApi setPicurl(String picurl) {
        this.picurl = picurl;
        return this;
    }

    public GoodsSendApi setPicarr(String picarr) {
        this.picarr = picarr;
        return this;
    }

    public GoodsSendApi setType_pid(int type_pid) {
        this.type_pid = type_pid;
        return this;
    }

    public GoodsSendApi setType_id(int type_id) {
        this.type_id = type_id;
        return this;
    }

    public GoodsSendApi setAttrs(String attrs) {
        this.attrs = attrs;
        return this;
    }

    public GoodsSendApi setPrice(String price) {
        this.price = price;
        return this;
    }

    public GoodsSendApi setY_price(String y_price) {
        this.y_price = y_price;
        return this;
    }


    public GoodsSendApi setIs_display(int is_display) {
        this.is_display = is_display;
        return this;
    }

    public GoodsSendApi setText(String text) {
        this.text = text;
        return this;
    }

    public GoodsSendApi setIs_new(int is_new) {
        this.is_new = is_new;
        return this;
    }

    public GoodsSendApi setState(int state) {
        this.state = state;
        return this;
    }

    @Override
    public String getApi() {
        return "api/goods_send";
    }
}
